extends layout

block content
    h1 Login
    form(action="/login", method="post")
        label Username
        input(type="text", name="username")
        label Password
        input(type="password", name="password")
        button(type="submit") login
    if user_error
        p(style='color: red') username error!
    else if pwd_error
        p(style='color: red') password error!